<header class="header" itemscope itemtype="http://schema.org/WPHeader">
    <div class="slimContent">
      <div class="navbar-header">
        <div class="profile-block text-center">
          <a id="avatar" href="{{ .Site.Params.home | default  "/" }}" {{ if .Site.Params.home }} target="_blank" {{ end }}>
            <img class="img-circle img-rotate" src="{{ .Site.Params.avatar }}" width="200" height="200">
          </a>
          <h2 id="name" class="hidden-xs hidden-sm">{{ .Site.Params.author }}</h2>
          <h3 id="title" class="hidden-xs hidden-sm hidden-md">{{ .Site.Params.subtitle}}</h3>
          <small id="location" class="text-muted hidden-xs hidden-sm"><i class="icon icon-map-marker"></i> {{ .Site.Params.location }}</small>
        </div>
        {{ partial "search.html" . }} 
        <div class="search" id="search-form-wrap">
          <form class="search-form sidebar-form">
              <div class="input-group">
                  <input type="text" class="search-form-input form-control" placeholder="搜索" />
                  <span class="input-group-btn">
                      <button type="submit" class="search-form-submit btn btn-flat" onclick="return false;"><i class="icon icon-search"></i></button>
                  </span>
              </div>
          </form>
        </div>
      </div>
      <nav id="main-navbar" class="collapse navbar-collapse" itemscope itemtype="http://schema.org/SiteNavigationElement" role="navigation">
        <ul class="nav navbar-nav main-nav menu-highlight">
          {{ $currentPage := . }}
          {{ range .Site.Menus.main }}
          <li class="menu-item {{ if $currentPage.IsMenuCurrent "main" . }} active {{ end }}">
            <a href="{{ .URL }}" rel="section">
              <i class="icon icon-{{ .Pre }}"></i>
              <span class="menu-title">{{ .Name }}</span>
            </a>
          </li>
         {{ end }}
        </ul>
        {{ partial "social.html" . }}
      </nav>
    </div>
  </header>
  